﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

/// <summary>
/// Summary description for Configurations
/// </summary>
public class HSMConfigurations
{
    public static bool IsForceSSL
    {
        get 
        {
            return ConfigurationManager.AppSettings["ForceSSL"] == "true";
        }
    }
    public static bool IsSchemeSSL
    {
        get
        {
            return HttpContext.Current.Request.Url.Scheme.ToLower() == "https";            
        }
    }
}
